/*
 * Copyright (C) 2020 Graylog, Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the Server Side Public License, version 1,
 * as published by MongoDB, Inc.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Server Side Public License for more details.
 *
 * You should have received a copy of the Server Side Public License
 * along with this program. If not, see
 * <http://www.mongodb.com/licensing/server-side-public-license>.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: resources/org/graylog2/plugin/journal/raw_message.proto

// Protobuf Java Version: 3.25.6
package org.graylog2.plugin.journal;

public final class JournalMessages {
  private JournalMessages() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface JournalMessageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:org.graylog2.plugin.journal.JournalMessage)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * the version of the message format (used for simplifying code when deserializing messages)
     * </pre>
     *
     * <code>optional uint32 version = 1;</code>
     * @return Whether the version field is set.
     */
    boolean hasVersion();
    /**
     * <pre>
     * the version of the message format (used for simplifying code when deserializing messages)
     * </pre>
     *
     * <code>optional uint32 version = 1;</code>
     * @return The version.
     */
    int getVersion();

    /**
     * <pre>
     * uuid, time is upper 64 bits, clockseq is lower 64 bits of the 128 bit uuid value
     * </pre>
     *
     * <code>optional fixed64 uuid_time = 2;</code>
     * @return Whether the uuidTime field is set.
     */
    boolean hasUuidTime();
    /**
     * <pre>
     * uuid, time is upper 64 bits, clockseq is lower 64 bits of the 128 bit uuid value
     * </pre>
     *
     * <code>optional fixed64 uuid_time = 2;</code>
     * @return The uuidTime.
     */
    long getUuidTime();

    /**
     * <code>optional fixed64 uuid_clockseq = 3;</code>
     * @return Whether the uuidClockseq field is set.
     */
    boolean hasUuidClockseq();
    /**
     * <code>optional fixed64 uuid_clockseq = 3;</code>
     * @return The uuidClockseq.
     */
    long getUuidClockseq();

    /**
     * <pre>
     * milliseconds since Java epoch (1970/01/01 00:00:00.000)
     * </pre>
     *
     * <code>optional fixed64 timestamp = 4;</code>
     * @return Whether the timestamp field is set.
     */
    boolean hasTimestamp();
    /**
     * <pre>
     * milliseconds since Java epoch (1970/01/01 00:00:00.000)
     * </pre>
     *
     * <code>optional fixed64 timestamp = 4;</code>
     * @return The timestamp.
     */
    long getTimestamp();

    /**
     * <pre>
     * which format the payload is supposed to have
     * </pre>
     *
     * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
     * @return Whether the codec field is set.
     */
    boolean hasCodec();
    /**
     * <pre>
     * which format the payload is supposed to have
     * </pre>
     *
     * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
     * @return The codec.
     */
    org.graylog2.plugin.journal.JournalMessages.CodecInfo getCodec();
    /**
     * <pre>
     * which format the payload is supposed to have
     * </pre>
     *
     * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
     */
    org.graylog2.plugin.journal.JournalMessages.CodecInfoOrBuilder getCodecOrBuilder();

    /**
     * <pre>
     * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
     * </pre>
     *
     * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
     */
    java.util.List<org.graylog2.plugin.journal.JournalMessages.SourceNode> 
        getSourceNodesList();
    /**
     * <pre>
     * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
     * </pre>
     *
     * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
     */
    org.graylog2.plugin.journal.JournalMessages.SourceNode getSourceNodes(int index);
    /**
     * <pre>
     * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
     * </pre>
     *
     * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
     */
    int getSourceNodesCount();
    /**
     * <pre>
     * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
     * </pre>
     *
     * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
     */
    java.util.List<? extends org.graylog2.plugin.journal.JournalMessages.SourceNodeOrBuilder> 
        getSourceNodesOrBuilderList();
    /**
     * <pre>
     * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
     * </pre>
     *
     * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
     */
    org.graylog2.plugin.journal.JournalMessages.SourceNodeOrBuilder getSourceNodesOrBuilder(
        int index);

    /**
     * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
     * @return Whether the remote field is set.
     */
    boolean hasRemote();
    /**
     * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
     * @return The remote.
     */
    org.graylog2.plugin.journal.JournalMessages.RemoteAddress getRemote();
    /**
     * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
     */
    org.graylog2.plugin.journal.JournalMessages.RemoteAddressOrBuilder getRemoteOrBuilder();

    /**
     * <code>optional bytes payload = 8;</code>
     * @return Whether the payload field is set.
     */
    boolean hasPayload();
    /**
     * <code>optional bytes payload = 8;</code>
     * @return The payload.
     */
    com.google.protobuf.ByteString getPayload();

    /**
     * <code>optional uint32 sequence_nr = 9;</code>
     * @return Whether the sequenceNr field is set.
     */
    boolean hasSequenceNr();
    /**
     * <code>optional uint32 sequence_nr = 9;</code>
     * @return The sequenceNr.
     */
    int getSequenceNr();
  }
  /**
   * Protobuf type {@code org.graylog2.plugin.journal.JournalMessage}
   */
  public static final class JournalMessage extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:org.graylog2.plugin.journal.JournalMessage)
      JournalMessageOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use JournalMessage.newBuilder() to construct.
    private JournalMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private JournalMessage() {
      sourceNodes_ = java.util.Collections.emptyList();
      payload_ = com.google.protobuf.ByteString.EMPTY;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new JournalMessage();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_JournalMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_JournalMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.graylog2.plugin.journal.JournalMessages.JournalMessage.class, org.graylog2.plugin.journal.JournalMessages.JournalMessage.Builder.class);
    }

    private int bitField0_;
    public static final int VERSION_FIELD_NUMBER = 1;
    private int version_ = 0;
    /**
     * <pre>
     * the version of the message format (used for simplifying code when deserializing messages)
     * </pre>
     *
     * <code>optional uint32 version = 1;</code>
     * @return Whether the version field is set.
     */
    @java.lang.Override
    public boolean hasVersion() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <pre>
     * the version of the message format (used for simplifying code when deserializing messages)
     * </pre>
     *
     * <code>optional uint32 version = 1;</code>
     * @return The version.
     */
    @java.lang.Override
    public int getVersion() {
      return version_;
    }

    public static final int UUID_TIME_FIELD_NUMBER = 2;
    private long uuidTime_ = 0L;
    /**
     * <pre>
     * uuid, time is upper 64 bits, clockseq is lower 64 bits of the 128 bit uuid value
     * </pre>
     *
     * <code>optional fixed64 uuid_time = 2;</code>
     * @return Whether the uuidTime field is set.
     */
    @java.lang.Override
    public boolean hasUuidTime() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <pre>
     * uuid, time is upper 64 bits, clockseq is lower 64 bits of the 128 bit uuid value
     * </pre>
     *
     * <code>optional fixed64 uuid_time = 2;</code>
     * @return The uuidTime.
     */
    @java.lang.Override
    public long getUuidTime() {
      return uuidTime_;
    }

    public static final int UUID_CLOCKSEQ_FIELD_NUMBER = 3;
    private long uuidClockseq_ = 0L;
    /**
     * <code>optional fixed64 uuid_clockseq = 3;</code>
     * @return Whether the uuidClockseq field is set.
     */
    @java.lang.Override
    public boolean hasUuidClockseq() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional fixed64 uuid_clockseq = 3;</code>
     * @return The uuidClockseq.
     */
    @java.lang.Override
    public long getUuidClockseq() {
      return uuidClockseq_;
    }

    public static final int TIMESTAMP_FIELD_NUMBER = 4;
    private long timestamp_ = 0L;
    /**
     * <pre>
     * milliseconds since Java epoch (1970/01/01 00:00:00.000)
     * </pre>
     *
     * <code>optional fixed64 timestamp = 4;</code>
     * @return Whether the timestamp field is set.
     */
    @java.lang.Override
    public boolean hasTimestamp() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <pre>
     * milliseconds since Java epoch (1970/01/01 00:00:00.000)
     * </pre>
     *
     * <code>optional fixed64 timestamp = 4;</code>
     * @return The timestamp.
     */
    @java.lang.Override
    public long getTimestamp() {
      return timestamp_;
    }

    public static final int CODEC_FIELD_NUMBER = 5;
    private org.graylog2.plugin.journal.JournalMessages.CodecInfo codec_;
    /**
     * <pre>
     * which format the payload is supposed to have
     * </pre>
     *
     * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
     * @return Whether the codec field is set.
     */
    @java.lang.Override
    public boolean hasCodec() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * <pre>
     * which format the payload is supposed to have
     * </pre>
     *
     * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
     * @return The codec.
     */
    @java.lang.Override
    public org.graylog2.plugin.journal.JournalMessages.CodecInfo getCodec() {
      return codec_ == null ? org.graylog2.plugin.journal.JournalMessages.CodecInfo.getDefaultInstance() : codec_;
    }
    /**
     * <pre>
     * which format the payload is supposed to have
     * </pre>
     *
     * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
     */
    @java.lang.Override
    public org.graylog2.plugin.journal.JournalMessages.CodecInfoOrBuilder getCodecOrBuilder() {
      return codec_ == null ? org.graylog2.plugin.journal.JournalMessages.CodecInfo.getDefaultInstance() : codec_;
    }

    public static final int SOURCE_NODES_FIELD_NUMBER = 6;
    @SuppressWarnings("serial")
    private java.util.List<org.graylog2.plugin.journal.JournalMessages.SourceNode> sourceNodes_;
    /**
     * <pre>
     * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
     * </pre>
     *
     * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
     */
    @java.lang.Override
    public java.util.List<org.graylog2.plugin.journal.JournalMessages.SourceNode> getSourceNodesList() {
      return sourceNodes_;
    }
    /**
     * <pre>
     * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
     * </pre>
     *
     * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
     */
    @java.lang.Override
    public java.util.List<? extends org.graylog2.plugin.journal.JournalMessages.SourceNodeOrBuilder> 
        getSourceNodesOrBuilderList() {
      return sourceNodes_;
    }
    /**
     * <pre>
     * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
     * </pre>
     *
     * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
     */
    @java.lang.Override
    public int getSourceNodesCount() {
      return sourceNodes_.size();
    }
    /**
     * <pre>
     * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
     * </pre>
     *
     * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
     */
    @java.lang.Override
    public org.graylog2.plugin.journal.JournalMessages.SourceNode getSourceNodes(int index) {
      return sourceNodes_.get(index);
    }
    /**
     * <pre>
     * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
     * </pre>
     *
     * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
     */
    @java.lang.Override
    public org.graylog2.plugin.journal.JournalMessages.SourceNodeOrBuilder getSourceNodesOrBuilder(
        int index) {
      return sourceNodes_.get(index);
    }

    public static final int REMOTE_FIELD_NUMBER = 7;
    private org.graylog2.plugin.journal.JournalMessages.RemoteAddress remote_;
    /**
     * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
     * @return Whether the remote field is set.
     */
    @java.lang.Override
    public boolean hasRemote() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
     * @return The remote.
     */
    @java.lang.Override
    public org.graylog2.plugin.journal.JournalMessages.RemoteAddress getRemote() {
      return remote_ == null ? org.graylog2.plugin.journal.JournalMessages.RemoteAddress.getDefaultInstance() : remote_;
    }
    /**
     * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
     */
    @java.lang.Override
    public org.graylog2.plugin.journal.JournalMessages.RemoteAddressOrBuilder getRemoteOrBuilder() {
      return remote_ == null ? org.graylog2.plugin.journal.JournalMessages.RemoteAddress.getDefaultInstance() : remote_;
    }

    public static final int PAYLOAD_FIELD_NUMBER = 8;
    private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * <code>optional bytes payload = 8;</code>
     * @return Whether the payload field is set.
     */
    @java.lang.Override
    public boolean hasPayload() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * <code>optional bytes payload = 8;</code>
     * @return The payload.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getPayload() {
      return payload_;
    }

    public static final int SEQUENCE_NR_FIELD_NUMBER = 9;
    private int sequenceNr_ = 0;
    /**
     * <code>optional uint32 sequence_nr = 9;</code>
     * @return Whether the sequenceNr field is set.
     */
    @java.lang.Override
    public boolean hasSequenceNr() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     * <code>optional uint32 sequence_nr = 9;</code>
     * @return The sequenceNr.
     */
    @java.lang.Override
    public int getSequenceNr() {
      return sequenceNr_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeUInt32(1, version_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeFixed64(2, uuidTime_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeFixed64(3, uuidClockseq_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        output.writeFixed64(4, timestamp_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        output.writeMessage(5, getCodec());
      }
      for (int i = 0; i < sourceNodes_.size(); i++) {
        output.writeMessage(6, sourceNodes_.get(i));
      }
      if (((bitField0_ & 0x00000020) != 0)) {
        output.writeMessage(7, getRemote());
      }
      if (((bitField0_ & 0x00000040) != 0)) {
        output.writeBytes(8, payload_);
      }
      if (((bitField0_ & 0x00000080) != 0)) {
        output.writeUInt32(9, sequenceNr_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, version_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed64Size(2, uuidTime_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed64Size(3, uuidClockseq_);
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed64Size(4, timestamp_);
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, getCodec());
      }
      for (int i = 0; i < sourceNodes_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, sourceNodes_.get(i));
      }
      if (((bitField0_ & 0x00000020) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, getRemote());
      }
      if (((bitField0_ & 0x00000040) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(8, payload_);
      }
      if (((bitField0_ & 0x00000080) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(9, sequenceNr_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.graylog2.plugin.journal.JournalMessages.JournalMessage)) {
        return super.equals(obj);
      }
      org.graylog2.plugin.journal.JournalMessages.JournalMessage other = (org.graylog2.plugin.journal.JournalMessages.JournalMessage) obj;

      if (hasVersion() != other.hasVersion()) return false;
      if (hasVersion()) {
        if (getVersion()
            != other.getVersion()) return false;
      }
      if (hasUuidTime() != other.hasUuidTime()) return false;
      if (hasUuidTime()) {
        if (getUuidTime()
            != other.getUuidTime()) return false;
      }
      if (hasUuidClockseq() != other.hasUuidClockseq()) return false;
      if (hasUuidClockseq()) {
        if (getUuidClockseq()
            != other.getUuidClockseq()) return false;
      }
      if (hasTimestamp() != other.hasTimestamp()) return false;
      if (hasTimestamp()) {
        if (getTimestamp()
            != other.getTimestamp()) return false;
      }
      if (hasCodec() != other.hasCodec()) return false;
      if (hasCodec()) {
        if (!getCodec()
            .equals(other.getCodec())) return false;
      }
      if (!getSourceNodesList()
          .equals(other.getSourceNodesList())) return false;
      if (hasRemote() != other.hasRemote()) return false;
      if (hasRemote()) {
        if (!getRemote()
            .equals(other.getRemote())) return false;
      }
      if (hasPayload() != other.hasPayload()) return false;
      if (hasPayload()) {
        if (!getPayload()
            .equals(other.getPayload())) return false;
      }
      if (hasSequenceNr() != other.hasSequenceNr()) return false;
      if (hasSequenceNr()) {
        if (getSequenceNr()
            != other.getSequenceNr()) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasVersion()) {
        hash = (37 * hash) + VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getVersion();
      }
      if (hasUuidTime()) {
        hash = (37 * hash) + UUID_TIME_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getUuidTime());
      }
      if (hasUuidClockseq()) {
        hash = (37 * hash) + UUID_CLOCKSEQ_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getUuidClockseq());
      }
      if (hasTimestamp()) {
        hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getTimestamp());
      }
      if (hasCodec()) {
        hash = (37 * hash) + CODEC_FIELD_NUMBER;
        hash = (53 * hash) + getCodec().hashCode();
      }
      if (getSourceNodesCount() > 0) {
        hash = (37 * hash) + SOURCE_NODES_FIELD_NUMBER;
        hash = (53 * hash) + getSourceNodesList().hashCode();
      }
      if (hasRemote()) {
        hash = (37 * hash) + REMOTE_FIELD_NUMBER;
        hash = (53 * hash) + getRemote().hashCode();
      }
      if (hasPayload()) {
        hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
        hash = (53 * hash) + getPayload().hashCode();
      }
      if (hasSequenceNr()) {
        hash = (37 * hash) + SEQUENCE_NR_FIELD_NUMBER;
        hash = (53 * hash) + getSequenceNr();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.graylog2.plugin.journal.JournalMessages.JournalMessage prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code org.graylog2.plugin.journal.JournalMessage}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:org.graylog2.plugin.journal.JournalMessage)
        org.graylog2.plugin.journal.JournalMessages.JournalMessageOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_JournalMessage_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_JournalMessage_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.graylog2.plugin.journal.JournalMessages.JournalMessage.class, org.graylog2.plugin.journal.JournalMessages.JournalMessage.Builder.class);
      }

      // Construct using org.graylog2.plugin.journal.JournalMessages.JournalMessage.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getCodecFieldBuilder();
          getSourceNodesFieldBuilder();
          getRemoteFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        version_ = 0;
        uuidTime_ = 0L;
        uuidClockseq_ = 0L;
        timestamp_ = 0L;
        codec_ = null;
        if (codecBuilder_ != null) {
          codecBuilder_.dispose();
          codecBuilder_ = null;
        }
        if (sourceNodesBuilder_ == null) {
          sourceNodes_ = java.util.Collections.emptyList();
        } else {
          sourceNodes_ = null;
          sourceNodesBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000020);
        remote_ = null;
        if (remoteBuilder_ != null) {
          remoteBuilder_.dispose();
          remoteBuilder_ = null;
        }
        payload_ = com.google.protobuf.ByteString.EMPTY;
        sequenceNr_ = 0;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_JournalMessage_descriptor;
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.JournalMessage getDefaultInstanceForType() {
        return org.graylog2.plugin.journal.JournalMessages.JournalMessage.getDefaultInstance();
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.JournalMessage build() {
        org.graylog2.plugin.journal.JournalMessages.JournalMessage result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.JournalMessage buildPartial() {
        org.graylog2.plugin.journal.JournalMessages.JournalMessage result = new org.graylog2.plugin.journal.JournalMessages.JournalMessage(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(org.graylog2.plugin.journal.JournalMessages.JournalMessage result) {
        if (sourceNodesBuilder_ == null) {
          if (((bitField0_ & 0x00000020) != 0)) {
            sourceNodes_ = java.util.Collections.unmodifiableList(sourceNodes_);
            bitField0_ = (bitField0_ & ~0x00000020);
          }
          result.sourceNodes_ = sourceNodes_;
        } else {
          result.sourceNodes_ = sourceNodesBuilder_.build();
        }
      }

      private void buildPartial0(org.graylog2.plugin.journal.JournalMessages.JournalMessage result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.version_ = version_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.uuidTime_ = uuidTime_;
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.uuidClockseq_ = uuidClockseq_;
          to_bitField0_ |= 0x00000004;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.timestamp_ = timestamp_;
          to_bitField0_ |= 0x00000008;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.codec_ = codecBuilder_ == null
              ? codec_
              : codecBuilder_.build();
          to_bitField0_ |= 0x00000010;
        }
        if (((from_bitField0_ & 0x00000040) != 0)) {
          result.remote_ = remoteBuilder_ == null
              ? remote_
              : remoteBuilder_.build();
          to_bitField0_ |= 0x00000020;
        }
        if (((from_bitField0_ & 0x00000080) != 0)) {
          result.payload_ = payload_;
          to_bitField0_ |= 0x00000040;
        }
        if (((from_bitField0_ & 0x00000100) != 0)) {
          result.sequenceNr_ = sequenceNr_;
          to_bitField0_ |= 0x00000080;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.graylog2.plugin.journal.JournalMessages.JournalMessage) {
          return mergeFrom((org.graylog2.plugin.journal.JournalMessages.JournalMessage)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.graylog2.plugin.journal.JournalMessages.JournalMessage other) {
        if (other == org.graylog2.plugin.journal.JournalMessages.JournalMessage.getDefaultInstance()) return this;
        if (other.hasVersion()) {
          setVersion(other.getVersion());
        }
        if (other.hasUuidTime()) {
          setUuidTime(other.getUuidTime());
        }
        if (other.hasUuidClockseq()) {
          setUuidClockseq(other.getUuidClockseq());
        }
        if (other.hasTimestamp()) {
          setTimestamp(other.getTimestamp());
        }
        if (other.hasCodec()) {
          mergeCodec(other.getCodec());
        }
        if (sourceNodesBuilder_ == null) {
          if (!other.sourceNodes_.isEmpty()) {
            if (sourceNodes_.isEmpty()) {
              sourceNodes_ = other.sourceNodes_;
              bitField0_ = (bitField0_ & ~0x00000020);
            } else {
              ensureSourceNodesIsMutable();
              sourceNodes_.addAll(other.sourceNodes_);
            }
            onChanged();
          }
        } else {
          if (!other.sourceNodes_.isEmpty()) {
            if (sourceNodesBuilder_.isEmpty()) {
              sourceNodesBuilder_.dispose();
              sourceNodesBuilder_ = null;
              sourceNodes_ = other.sourceNodes_;
              bitField0_ = (bitField0_ & ~0x00000020);
              sourceNodesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getSourceNodesFieldBuilder() : null;
            } else {
              sourceNodesBuilder_.addAllMessages(other.sourceNodes_);
            }
          }
        }
        if (other.hasRemote()) {
          mergeRemote(other.getRemote());
        }
        if (other.hasPayload()) {
          setPayload(other.getPayload());
        }
        if (other.hasSequenceNr()) {
          setSequenceNr(other.getSequenceNr());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                version_ = input.readUInt32();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 17: {
                uuidTime_ = input.readFixed64();
                bitField0_ |= 0x00000002;
                break;
              } // case 17
              case 25: {
                uuidClockseq_ = input.readFixed64();
                bitField0_ |= 0x00000004;
                break;
              } // case 25
              case 33: {
                timestamp_ = input.readFixed64();
                bitField0_ |= 0x00000008;
                break;
              } // case 33
              case 42: {
                input.readMessage(
                    getCodecFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 42
              case 50: {
                org.graylog2.plugin.journal.JournalMessages.SourceNode m =
                    input.readMessage(
                        org.graylog2.plugin.journal.JournalMessages.SourceNode.PARSER,
                        extensionRegistry);
                if (sourceNodesBuilder_ == null) {
                  ensureSourceNodesIsMutable();
                  sourceNodes_.add(m);
                } else {
                  sourceNodesBuilder_.addMessage(m);
                }
                break;
              } // case 50
              case 58: {
                input.readMessage(
                    getRemoteFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 58
              case 66: {
                payload_ = input.readBytes();
                bitField0_ |= 0x00000080;
                break;
              } // case 66
              case 72: {
                sequenceNr_ = input.readUInt32();
                bitField0_ |= 0x00000100;
                break;
              } // case 72
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private int version_ ;
      /**
       * <pre>
       * the version of the message format (used for simplifying code when deserializing messages)
       * </pre>
       *
       * <code>optional uint32 version = 1;</code>
       * @return Whether the version field is set.
       */
      @java.lang.Override
      public boolean hasVersion() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <pre>
       * the version of the message format (used for simplifying code when deserializing messages)
       * </pre>
       *
       * <code>optional uint32 version = 1;</code>
       * @return The version.
       */
      @java.lang.Override
      public int getVersion() {
        return version_;
      }
      /**
       * <pre>
       * the version of the message format (used for simplifying code when deserializing messages)
       * </pre>
       *
       * <code>optional uint32 version = 1;</code>
       * @param value The version to set.
       * @return This builder for chaining.
       */
      public Builder setVersion(int value) {

        version_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * the version of the message format (used for simplifying code when deserializing messages)
       * </pre>
       *
       * <code>optional uint32 version = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearVersion() {
        bitField0_ = (bitField0_ & ~0x00000001);
        version_ = 0;
        onChanged();
        return this;
      }

      private long uuidTime_ ;
      /**
       * <pre>
       * uuid, time is upper 64 bits, clockseq is lower 64 bits of the 128 bit uuid value
       * </pre>
       *
       * <code>optional fixed64 uuid_time = 2;</code>
       * @return Whether the uuidTime field is set.
       */
      @java.lang.Override
      public boolean hasUuidTime() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <pre>
       * uuid, time is upper 64 bits, clockseq is lower 64 bits of the 128 bit uuid value
       * </pre>
       *
       * <code>optional fixed64 uuid_time = 2;</code>
       * @return The uuidTime.
       */
      @java.lang.Override
      public long getUuidTime() {
        return uuidTime_;
      }
      /**
       * <pre>
       * uuid, time is upper 64 bits, clockseq is lower 64 bits of the 128 bit uuid value
       * </pre>
       *
       * <code>optional fixed64 uuid_time = 2;</code>
       * @param value The uuidTime to set.
       * @return This builder for chaining.
       */
      public Builder setUuidTime(long value) {

        uuidTime_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * uuid, time is upper 64 bits, clockseq is lower 64 bits of the 128 bit uuid value
       * </pre>
       *
       * <code>optional fixed64 uuid_time = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearUuidTime() {
        bitField0_ = (bitField0_ & ~0x00000002);
        uuidTime_ = 0L;
        onChanged();
        return this;
      }

      private long uuidClockseq_ ;
      /**
       * <code>optional fixed64 uuid_clockseq = 3;</code>
       * @return Whether the uuidClockseq field is set.
       */
      @java.lang.Override
      public boolean hasUuidClockseq() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>optional fixed64 uuid_clockseq = 3;</code>
       * @return The uuidClockseq.
       */
      @java.lang.Override
      public long getUuidClockseq() {
        return uuidClockseq_;
      }
      /**
       * <code>optional fixed64 uuid_clockseq = 3;</code>
       * @param value The uuidClockseq to set.
       * @return This builder for chaining.
       */
      public Builder setUuidClockseq(long value) {

        uuidClockseq_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <code>optional fixed64 uuid_clockseq = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearUuidClockseq() {
        bitField0_ = (bitField0_ & ~0x00000004);
        uuidClockseq_ = 0L;
        onChanged();
        return this;
      }

      private long timestamp_ ;
      /**
       * <pre>
       * milliseconds since Java epoch (1970/01/01 00:00:00.000)
       * </pre>
       *
       * <code>optional fixed64 timestamp = 4;</code>
       * @return Whether the timestamp field is set.
       */
      @java.lang.Override
      public boolean hasTimestamp() {
        return ((bitField0_ & 0x00000008) != 0);
      }
      /**
       * <pre>
       * milliseconds since Java epoch (1970/01/01 00:00:00.000)
       * </pre>
       *
       * <code>optional fixed64 timestamp = 4;</code>
       * @return The timestamp.
       */
      @java.lang.Override
      public long getTimestamp() {
        return timestamp_;
      }
      /**
       * <pre>
       * milliseconds since Java epoch (1970/01/01 00:00:00.000)
       * </pre>
       *
       * <code>optional fixed64 timestamp = 4;</code>
       * @param value The timestamp to set.
       * @return This builder for chaining.
       */
      public Builder setTimestamp(long value) {

        timestamp_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * milliseconds since Java epoch (1970/01/01 00:00:00.000)
       * </pre>
       *
       * <code>optional fixed64 timestamp = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearTimestamp() {
        bitField0_ = (bitField0_ & ~0x00000008);
        timestamp_ = 0L;
        onChanged();
        return this;
      }

      private org.graylog2.plugin.journal.JournalMessages.CodecInfo codec_;
      private com.google.protobuf.SingleFieldBuilderV3<
          org.graylog2.plugin.journal.JournalMessages.CodecInfo, org.graylog2.plugin.journal.JournalMessages.CodecInfo.Builder, org.graylog2.plugin.journal.JournalMessages.CodecInfoOrBuilder> codecBuilder_;
      /**
       * <pre>
       * which format the payload is supposed to have
       * </pre>
       *
       * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
       * @return Whether the codec field is set.
       */
      public boolean hasCodec() {
        return ((bitField0_ & 0x00000010) != 0);
      }
      /**
       * <pre>
       * which format the payload is supposed to have
       * </pre>
       *
       * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
       * @return The codec.
       */
      public org.graylog2.plugin.journal.JournalMessages.CodecInfo getCodec() {
        if (codecBuilder_ == null) {
          return codec_ == null ? org.graylog2.plugin.journal.JournalMessages.CodecInfo.getDefaultInstance() : codec_;
        } else {
          return codecBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * which format the payload is supposed to have
       * </pre>
       *
       * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
       */
      public Builder setCodec(org.graylog2.plugin.journal.JournalMessages.CodecInfo value) {
        if (codecBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          codec_ = value;
        } else {
          codecBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * which format the payload is supposed to have
       * </pre>
       *
       * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
       */
      public Builder setCodec(
          org.graylog2.plugin.journal.JournalMessages.CodecInfo.Builder builderForValue) {
        if (codecBuilder_ == null) {
          codec_ = builderForValue.build();
        } else {
          codecBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * which format the payload is supposed to have
       * </pre>
       *
       * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
       */
      public Builder mergeCodec(org.graylog2.plugin.journal.JournalMessages.CodecInfo value) {
        if (codecBuilder_ == null) {
          if (((bitField0_ & 0x00000010) != 0) &&
            codec_ != null &&
            codec_ != org.graylog2.plugin.journal.JournalMessages.CodecInfo.getDefaultInstance()) {
            getCodecBuilder().mergeFrom(value);
          } else {
            codec_ = value;
          }
        } else {
          codecBuilder_.mergeFrom(value);
        }
        if (codec_ != null) {
          bitField0_ |= 0x00000010;
          onChanged();
        }
        return this;
      }
      /**
       * <pre>
       * which format the payload is supposed to have
       * </pre>
       *
       * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
       */
      public Builder clearCodec() {
        bitField0_ = (bitField0_ & ~0x00000010);
        codec_ = null;
        if (codecBuilder_ != null) {
          codecBuilder_.dispose();
          codecBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <pre>
       * which format the payload is supposed to have
       * </pre>
       *
       * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
       */
      public org.graylog2.plugin.journal.JournalMessages.CodecInfo.Builder getCodecBuilder() {
        bitField0_ |= 0x00000010;
        onChanged();
        return getCodecFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * which format the payload is supposed to have
       * </pre>
       *
       * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
       */
      public org.graylog2.plugin.journal.JournalMessages.CodecInfoOrBuilder getCodecOrBuilder() {
        if (codecBuilder_ != null) {
          return codecBuilder_.getMessageOrBuilder();
        } else {
          return codec_ == null ?
              org.graylog2.plugin.journal.JournalMessages.CodecInfo.getDefaultInstance() : codec_;
        }
      }
      /**
       * <pre>
       * which format the payload is supposed to have
       * </pre>
       *
       * <code>optional .org.graylog2.plugin.journal.CodecInfo codec = 5;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          org.graylog2.plugin.journal.JournalMessages.CodecInfo, org.graylog2.plugin.journal.JournalMessages.CodecInfo.Builder, org.graylog2.plugin.journal.JournalMessages.CodecInfoOrBuilder> 
          getCodecFieldBuilder() {
        if (codecBuilder_ == null) {
          codecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              org.graylog2.plugin.journal.JournalMessages.CodecInfo, org.graylog2.plugin.journal.JournalMessages.CodecInfo.Builder, org.graylog2.plugin.journal.JournalMessages.CodecInfoOrBuilder>(
                  getCodec(),
                  getParentForChildren(),
                  isClean());
          codec_ = null;
        }
        return codecBuilder_;
      }

      private java.util.List<org.graylog2.plugin.journal.JournalMessages.SourceNode> sourceNodes_ =
        java.util.Collections.emptyList();
      private void ensureSourceNodesIsMutable() {
        if (!((bitField0_ & 0x00000020) != 0)) {
          sourceNodes_ = new java.util.ArrayList<org.graylog2.plugin.journal.JournalMessages.SourceNode>(sourceNodes_);
          bitField0_ |= 0x00000020;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.graylog2.plugin.journal.JournalMessages.SourceNode, org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder, org.graylog2.plugin.journal.JournalMessages.SourceNodeOrBuilder> sourceNodesBuilder_;

      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public java.util.List<org.graylog2.plugin.journal.JournalMessages.SourceNode> getSourceNodesList() {
        if (sourceNodesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(sourceNodes_);
        } else {
          return sourceNodesBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public int getSourceNodesCount() {
        if (sourceNodesBuilder_ == null) {
          return sourceNodes_.size();
        } else {
          return sourceNodesBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public org.graylog2.plugin.journal.JournalMessages.SourceNode getSourceNodes(int index) {
        if (sourceNodesBuilder_ == null) {
          return sourceNodes_.get(index);
        } else {
          return sourceNodesBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public Builder setSourceNodes(
          int index, org.graylog2.plugin.journal.JournalMessages.SourceNode value) {
        if (sourceNodesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSourceNodesIsMutable();
          sourceNodes_.set(index, value);
          onChanged();
        } else {
          sourceNodesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public Builder setSourceNodes(
          int index, org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder builderForValue) {
        if (sourceNodesBuilder_ == null) {
          ensureSourceNodesIsMutable();
          sourceNodes_.set(index, builderForValue.build());
          onChanged();
        } else {
          sourceNodesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public Builder addSourceNodes(org.graylog2.plugin.journal.JournalMessages.SourceNode value) {
        if (sourceNodesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSourceNodesIsMutable();
          sourceNodes_.add(value);
          onChanged();
        } else {
          sourceNodesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public Builder addSourceNodes(
          int index, org.graylog2.plugin.journal.JournalMessages.SourceNode value) {
        if (sourceNodesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSourceNodesIsMutable();
          sourceNodes_.add(index, value);
          onChanged();
        } else {
          sourceNodesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public Builder addSourceNodes(
          org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder builderForValue) {
        if (sourceNodesBuilder_ == null) {
          ensureSourceNodesIsMutable();
          sourceNodes_.add(builderForValue.build());
          onChanged();
        } else {
          sourceNodesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public Builder addSourceNodes(
          int index, org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder builderForValue) {
        if (sourceNodesBuilder_ == null) {
          ensureSourceNodesIsMutable();
          sourceNodes_.add(index, builderForValue.build());
          onChanged();
        } else {
          sourceNodesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public Builder addAllSourceNodes(
          java.lang.Iterable<? extends org.graylog2.plugin.journal.JournalMessages.SourceNode> values) {
        if (sourceNodesBuilder_ == null) {
          ensureSourceNodesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, sourceNodes_);
          onChanged();
        } else {
          sourceNodesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public Builder clearSourceNodes() {
        if (sourceNodesBuilder_ == null) {
          sourceNodes_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000020);
          onChanged();
        } else {
          sourceNodesBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public Builder removeSourceNodes(int index) {
        if (sourceNodesBuilder_ == null) {
          ensureSourceNodesIsMutable();
          sourceNodes_.remove(index);
          onChanged();
        } else {
          sourceNodesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder getSourceNodesBuilder(
          int index) {
        return getSourceNodesFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public org.graylog2.plugin.journal.JournalMessages.SourceNodeOrBuilder getSourceNodesOrBuilder(
          int index) {
        if (sourceNodesBuilder_ == null) {
          return sourceNodes_.get(index);  } else {
          return sourceNodesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public java.util.List<? extends org.graylog2.plugin.journal.JournalMessages.SourceNodeOrBuilder> 
           getSourceNodesOrBuilderList() {
        if (sourceNodesBuilder_ != null) {
          return sourceNodesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(sourceNodes_);
        }
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder addSourceNodesBuilder() {
        return getSourceNodesFieldBuilder().addBuilder(
            org.graylog2.plugin.journal.JournalMessages.SourceNode.getDefaultInstance());
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder addSourceNodesBuilder(
          int index) {
        return getSourceNodesFieldBuilder().addBuilder(
            index, org.graylog2.plugin.journal.JournalMessages.SourceNode.getDefaultInstance());
      }
      /**
       * <pre>
       * the list of graylog2 nodes which have handled the message (radios, servers) in receive order
       * </pre>
       *
       * <code>repeated .org.graylog2.plugin.journal.SourceNode source_nodes = 6;</code>
       */
      public java.util.List<org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder> 
           getSourceNodesBuilderList() {
        return getSourceNodesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.graylog2.plugin.journal.JournalMessages.SourceNode, org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder, org.graylog2.plugin.journal.JournalMessages.SourceNodeOrBuilder> 
          getSourceNodesFieldBuilder() {
        if (sourceNodesBuilder_ == null) {
          sourceNodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.graylog2.plugin.journal.JournalMessages.SourceNode, org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder, org.graylog2.plugin.journal.JournalMessages.SourceNodeOrBuilder>(
                  sourceNodes_,
                  ((bitField0_ & 0x00000020) != 0),
                  getParentForChildren(),
                  isClean());
          sourceNodes_ = null;
        }
        return sourceNodesBuilder_;
      }

      private org.graylog2.plugin.journal.JournalMessages.RemoteAddress remote_;
      private com.google.protobuf.SingleFieldBuilderV3<
          org.graylog2.plugin.journal.JournalMessages.RemoteAddress, org.graylog2.plugin.journal.JournalMessages.RemoteAddress.Builder, org.graylog2.plugin.journal.JournalMessages.RemoteAddressOrBuilder> remoteBuilder_;
      /**
       * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
       * @return Whether the remote field is set.
       */
      public boolean hasRemote() {
        return ((bitField0_ & 0x00000040) != 0);
      }
      /**
       * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
       * @return The remote.
       */
      public org.graylog2.plugin.journal.JournalMessages.RemoteAddress getRemote() {
        if (remoteBuilder_ == null) {
          return remote_ == null ? org.graylog2.plugin.journal.JournalMessages.RemoteAddress.getDefaultInstance() : remote_;
        } else {
          return remoteBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
       */
      public Builder setRemote(org.graylog2.plugin.journal.JournalMessages.RemoteAddress value) {
        if (remoteBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          remote_ = value;
        } else {
          remoteBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }
      /**
       * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
       */
      public Builder setRemote(
          org.graylog2.plugin.journal.JournalMessages.RemoteAddress.Builder builderForValue) {
        if (remoteBuilder_ == null) {
          remote_ = builderForValue.build();
        } else {
          remoteBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000040;
        onChanged();
        return this;
      }
      /**
       * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
       */
      public Builder mergeRemote(org.graylog2.plugin.journal.JournalMessages.RemoteAddress value) {
        if (remoteBuilder_ == null) {
          if (((bitField0_ & 0x00000040) != 0) &&
            remote_ != null &&
            remote_ != org.graylog2.plugin.journal.JournalMessages.RemoteAddress.getDefaultInstance()) {
            getRemoteBuilder().mergeFrom(value);
          } else {
            remote_ = value;
          }
        } else {
          remoteBuilder_.mergeFrom(value);
        }
        if (remote_ != null) {
          bitField0_ |= 0x00000040;
          onChanged();
        }
        return this;
      }
      /**
       * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
       */
      public Builder clearRemote() {
        bitField0_ = (bitField0_ & ~0x00000040);
        remote_ = null;
        if (remoteBuilder_ != null) {
          remoteBuilder_.dispose();
          remoteBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
       */
      public org.graylog2.plugin.journal.JournalMessages.RemoteAddress.Builder getRemoteBuilder() {
        bitField0_ |= 0x00000040;
        onChanged();
        return getRemoteFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
       */
      public org.graylog2.plugin.journal.JournalMessages.RemoteAddressOrBuilder getRemoteOrBuilder() {
        if (remoteBuilder_ != null) {
          return remoteBuilder_.getMessageOrBuilder();
        } else {
          return remote_ == null ?
              org.graylog2.plugin.journal.JournalMessages.RemoteAddress.getDefaultInstance() : remote_;
        }
      }
      /**
       * <code>optional .org.graylog2.plugin.journal.RemoteAddress remote = 7;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          org.graylog2.plugin.journal.JournalMessages.RemoteAddress, org.graylog2.plugin.journal.JournalMessages.RemoteAddress.Builder, org.graylog2.plugin.journal.JournalMessages.RemoteAddressOrBuilder> 
          getRemoteFieldBuilder() {
        if (remoteBuilder_ == null) {
          remoteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              org.graylog2.plugin.journal.JournalMessages.RemoteAddress, org.graylog2.plugin.journal.JournalMessages.RemoteAddress.Builder, org.graylog2.plugin.journal.JournalMessages.RemoteAddressOrBuilder>(
                  getRemote(),
                  getParentForChildren(),
                  isClean());
          remote_ = null;
        }
        return remoteBuilder_;
      }

      private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>optional bytes payload = 8;</code>
       * @return Whether the payload field is set.
       */
      @java.lang.Override
      public boolean hasPayload() {
        return ((bitField0_ & 0x00000080) != 0);
      }
      /**
       * <code>optional bytes payload = 8;</code>
       * @return The payload.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getPayload() {
        return payload_;
      }
      /**
       * <code>optional bytes payload = 8;</code>
       * @param value The payload to set.
       * @return This builder for chaining.
       */
      public Builder setPayload(com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        payload_ = value;
        bitField0_ |= 0x00000080;
        onChanged();
        return this;
      }
      /**
       * <code>optional bytes payload = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearPayload() {
        bitField0_ = (bitField0_ & ~0x00000080);
        payload_ = getDefaultInstance().getPayload();
        onChanged();
        return this;
      }

      private int sequenceNr_ ;
      /**
       * <code>optional uint32 sequence_nr = 9;</code>
       * @return Whether the sequenceNr field is set.
       */
      @java.lang.Override
      public boolean hasSequenceNr() {
        return ((bitField0_ & 0x00000100) != 0);
      }
      /**
       * <code>optional uint32 sequence_nr = 9;</code>
       * @return The sequenceNr.
       */
      @java.lang.Override
      public int getSequenceNr() {
        return sequenceNr_;
      }
      /**
       * <code>optional uint32 sequence_nr = 9;</code>
       * @param value The sequenceNr to set.
       * @return This builder for chaining.
       */
      public Builder setSequenceNr(int value) {

        sequenceNr_ = value;
        bitField0_ |= 0x00000100;
        onChanged();
        return this;
      }
      /**
       * <code>optional uint32 sequence_nr = 9;</code>
       * @return This builder for chaining.
       */
      public Builder clearSequenceNr() {
        bitField0_ = (bitField0_ & ~0x00000100);
        sequenceNr_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:org.graylog2.plugin.journal.JournalMessage)
    }

    // @@protoc_insertion_point(class_scope:org.graylog2.plugin.journal.JournalMessage)
    private static final org.graylog2.plugin.journal.JournalMessages.JournalMessage DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.graylog2.plugin.journal.JournalMessages.JournalMessage();
    }

    public static org.graylog2.plugin.journal.JournalMessages.JournalMessage getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<JournalMessage>
        PARSER = new com.google.protobuf.AbstractParser<JournalMessage>() {
      @java.lang.Override
      public JournalMessage parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser<JournalMessage> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<JournalMessage> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.graylog2.plugin.journal.JournalMessages.JournalMessage getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface RemoteAddressOrBuilder extends
      // @@protoc_insertion_point(interface_extends:org.graylog2.plugin.journal.RemoteAddress)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * the original remote (IP) address of the message sender, unresolved,
     * </pre>
     *
     * <code>optional bytes address = 1;</code>
     * @return Whether the address field is set.
     */
    boolean hasAddress();
    /**
     * <pre>
     * the original remote (IP) address of the message sender, unresolved,
     * </pre>
     *
     * <code>optional bytes address = 1;</code>
     * @return The address.
     */
    com.google.protobuf.ByteString getAddress();

    /**
     * <pre>
     * the port of the sender, if available/applicable
     * </pre>
     *
     * <code>optional uint32 port = 2;</code>
     * @return Whether the port field is set.
     */
    boolean hasPort();
    /**
     * <pre>
     * the port of the sender, if available/applicable
     * </pre>
     *
     * <code>optional uint32 port = 2;</code>
     * @return The port.
     */
    int getPort();

    /**
     * <pre>
     * a processing node can optionally resolve the address early
     * </pre>
     *
     * <code>optional string resolved = 3;</code>
     * @return Whether the resolved field is set.
     */
    boolean hasResolved();
    /**
     * <pre>
     * a processing node can optionally resolve the address early
     * </pre>
     *
     * <code>optional string resolved = 3;</code>
     * @return The resolved.
     */
    java.lang.String getResolved();
    /**
     * <pre>
     * a processing node can optionally resolve the address early
     * </pre>
     *
     * <code>optional string resolved = 3;</code>
     * @return The bytes for resolved.
     */
    com.google.protobuf.ByteString
        getResolvedBytes();
  }
  /**
   * Protobuf type {@code org.graylog2.plugin.journal.RemoteAddress}
   */
  public static final class RemoteAddress extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:org.graylog2.plugin.journal.RemoteAddress)
      RemoteAddressOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use RemoteAddress.newBuilder() to construct.
    private RemoteAddress(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private RemoteAddress() {
      address_ = com.google.protobuf.ByteString.EMPTY;
      resolved_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new RemoteAddress();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_RemoteAddress_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_RemoteAddress_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.graylog2.plugin.journal.JournalMessages.RemoteAddress.class, org.graylog2.plugin.journal.JournalMessages.RemoteAddress.Builder.class);
    }

    private int bitField0_;
    public static final int ADDRESS_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * <pre>
     * the original remote (IP) address of the message sender, unresolved,
     * </pre>
     *
     * <code>optional bytes address = 1;</code>
     * @return Whether the address field is set.
     */
    @java.lang.Override
    public boolean hasAddress() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <pre>
     * the original remote (IP) address of the message sender, unresolved,
     * </pre>
     *
     * <code>optional bytes address = 1;</code>
     * @return The address.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getAddress() {
      return address_;
    }

    public static final int PORT_FIELD_NUMBER = 2;
    private int port_ = 0;
    /**
     * <pre>
     * the port of the sender, if available/applicable
     * </pre>
     *
     * <code>optional uint32 port = 2;</code>
     * @return Whether the port field is set.
     */
    @java.lang.Override
    public boolean hasPort() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <pre>
     * the port of the sender, if available/applicable
     * </pre>
     *
     * <code>optional uint32 port = 2;</code>
     * @return The port.
     */
    @java.lang.Override
    public int getPort() {
      return port_;
    }

    public static final int RESOLVED_FIELD_NUMBER = 3;
    @SuppressWarnings("serial")
    private volatile java.lang.Object resolved_ = "";
    /**
     * <pre>
     * a processing node can optionally resolve the address early
     * </pre>
     *
     * <code>optional string resolved = 3;</code>
     * @return Whether the resolved field is set.
     */
    @java.lang.Override
    public boolean hasResolved() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <pre>
     * a processing node can optionally resolve the address early
     * </pre>
     *
     * <code>optional string resolved = 3;</code>
     * @return The resolved.
     */
    @java.lang.Override
    public java.lang.String getResolved() {
      java.lang.Object ref = resolved_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          resolved_ = s;
        }
        return s;
      }
    }
    /**
     * <pre>
     * a processing node can optionally resolve the address early
     * </pre>
     *
     * <code>optional string resolved = 3;</code>
     * @return The bytes for resolved.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getResolvedBytes() {
      java.lang.Object ref = resolved_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        resolved_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeBytes(1, address_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeUInt32(2, port_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resolved_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, address_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, port_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resolved_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.graylog2.plugin.journal.JournalMessages.RemoteAddress)) {
        return super.equals(obj);
      }
      org.graylog2.plugin.journal.JournalMessages.RemoteAddress other = (org.graylog2.plugin.journal.JournalMessages.RemoteAddress) obj;

      if (hasAddress() != other.hasAddress()) return false;
      if (hasAddress()) {
        if (!getAddress()
            .equals(other.getAddress())) return false;
      }
      if (hasPort() != other.hasPort()) return false;
      if (hasPort()) {
        if (getPort()
            != other.getPort()) return false;
      }
      if (hasResolved() != other.hasResolved()) return false;
      if (hasResolved()) {
        if (!getResolved()
            .equals(other.getResolved())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasAddress()) {
        hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
        hash = (53 * hash) + getAddress().hashCode();
      }
      if (hasPort()) {
        hash = (37 * hash) + PORT_FIELD_NUMBER;
        hash = (53 * hash) + getPort();
      }
      if (hasResolved()) {
        hash = (37 * hash) + RESOLVED_FIELD_NUMBER;
        hash = (53 * hash) + getResolved().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.graylog2.plugin.journal.JournalMessages.RemoteAddress prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code org.graylog2.plugin.journal.RemoteAddress}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:org.graylog2.plugin.journal.RemoteAddress)
        org.graylog2.plugin.journal.JournalMessages.RemoteAddressOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_RemoteAddress_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_RemoteAddress_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.graylog2.plugin.journal.JournalMessages.RemoteAddress.class, org.graylog2.plugin.journal.JournalMessages.RemoteAddress.Builder.class);
      }

      // Construct using org.graylog2.plugin.journal.JournalMessages.RemoteAddress.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        address_ = com.google.protobuf.ByteString.EMPTY;
        port_ = 0;
        resolved_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_RemoteAddress_descriptor;
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.RemoteAddress getDefaultInstanceForType() {
        return org.graylog2.plugin.journal.JournalMessages.RemoteAddress.getDefaultInstance();
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.RemoteAddress build() {
        org.graylog2.plugin.journal.JournalMessages.RemoteAddress result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.RemoteAddress buildPartial() {
        org.graylog2.plugin.journal.JournalMessages.RemoteAddress result = new org.graylog2.plugin.journal.JournalMessages.RemoteAddress(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.graylog2.plugin.journal.JournalMessages.RemoteAddress result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.address_ = address_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.port_ = port_;
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.resolved_ = resolved_;
          to_bitField0_ |= 0x00000004;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.graylog2.plugin.journal.JournalMessages.RemoteAddress) {
          return mergeFrom((org.graylog2.plugin.journal.JournalMessages.RemoteAddress)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.graylog2.plugin.journal.JournalMessages.RemoteAddress other) {
        if (other == org.graylog2.plugin.journal.JournalMessages.RemoteAddress.getDefaultInstance()) return this;
        if (other.hasAddress()) {
          setAddress(other.getAddress());
        }
        if (other.hasPort()) {
          setPort(other.getPort());
        }
        if (other.hasResolved()) {
          resolved_ = other.resolved_;
          bitField0_ |= 0x00000004;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                address_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 16: {
                port_ = input.readUInt32();
                bitField0_ |= 0x00000002;
                break;
              } // case 16
              case 26: {
                resolved_ = input.readBytes();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <pre>
       * the original remote (IP) address of the message sender, unresolved,
       * </pre>
       *
       * <code>optional bytes address = 1;</code>
       * @return Whether the address field is set.
       */
      @java.lang.Override
      public boolean hasAddress() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <pre>
       * the original remote (IP) address of the message sender, unresolved,
       * </pre>
       *
       * <code>optional bytes address = 1;</code>
       * @return The address.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getAddress() {
        return address_;
      }
      /**
       * <pre>
       * the original remote (IP) address of the message sender, unresolved,
       * </pre>
       *
       * <code>optional bytes address = 1;</code>
       * @param value The address to set.
       * @return This builder for chaining.
       */
      public Builder setAddress(com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        address_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * the original remote (IP) address of the message sender, unresolved,
       * </pre>
       *
       * <code>optional bytes address = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearAddress() {
        bitField0_ = (bitField0_ & ~0x00000001);
        address_ = getDefaultInstance().getAddress();
        onChanged();
        return this;
      }

      private int port_ ;
      /**
       * <pre>
       * the port of the sender, if available/applicable
       * </pre>
       *
       * <code>optional uint32 port = 2;</code>
       * @return Whether the port field is set.
       */
      @java.lang.Override
      public boolean hasPort() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <pre>
       * the port of the sender, if available/applicable
       * </pre>
       *
       * <code>optional uint32 port = 2;</code>
       * @return The port.
       */
      @java.lang.Override
      public int getPort() {
        return port_;
      }
      /**
       * <pre>
       * the port of the sender, if available/applicable
       * </pre>
       *
       * <code>optional uint32 port = 2;</code>
       * @param value The port to set.
       * @return This builder for chaining.
       */
      public Builder setPort(int value) {

        port_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * the port of the sender, if available/applicable
       * </pre>
       *
       * <code>optional uint32 port = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearPort() {
        bitField0_ = (bitField0_ & ~0x00000002);
        port_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object resolved_ = "";
      /**
       * <pre>
       * a processing node can optionally resolve the address early
       * </pre>
       *
       * <code>optional string resolved = 3;</code>
       * @return Whether the resolved field is set.
       */
      public boolean hasResolved() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <pre>
       * a processing node can optionally resolve the address early
       * </pre>
       *
       * <code>optional string resolved = 3;</code>
       * @return The resolved.
       */
      public java.lang.String getResolved() {
        java.lang.Object ref = resolved_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            resolved_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * a processing node can optionally resolve the address early
       * </pre>
       *
       * <code>optional string resolved = 3;</code>
       * @return The bytes for resolved.
       */
      public com.google.protobuf.ByteString
          getResolvedBytes() {
        java.lang.Object ref = resolved_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          resolved_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * a processing node can optionally resolve the address early
       * </pre>
       *
       * <code>optional string resolved = 3;</code>
       * @param value The resolved to set.
       * @return This builder for chaining.
       */
      public Builder setResolved(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        resolved_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * a processing node can optionally resolve the address early
       * </pre>
       *
       * <code>optional string resolved = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearResolved() {
        resolved_ = getDefaultInstance().getResolved();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * a processing node can optionally resolve the address early
       * </pre>
       *
       * <code>optional string resolved = 3;</code>
       * @param value The bytes for resolved to set.
       * @return This builder for chaining.
       */
      public Builder setResolvedBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        resolved_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:org.graylog2.plugin.journal.RemoteAddress)
    }

    // @@protoc_insertion_point(class_scope:org.graylog2.plugin.journal.RemoteAddress)
    private static final org.graylog2.plugin.journal.JournalMessages.RemoteAddress DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.graylog2.plugin.journal.JournalMessages.RemoteAddress();
    }

    public static org.graylog2.plugin.journal.JournalMessages.RemoteAddress getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<RemoteAddress>
        PARSER = new com.google.protobuf.AbstractParser<RemoteAddress>() {
      @java.lang.Override
      public RemoteAddress parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser<RemoteAddress> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<RemoteAddress> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.graylog2.plugin.journal.JournalMessages.RemoteAddress getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface CodecInfoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:org.graylog2.plugin.journal.CodecInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional string name = 1;</code>
     * @return Whether the name field is set.
     */
    boolean hasName();
    /**
     * <code>optional string name = 1;</code>
     * @return The name.
     */
    java.lang.String getName();
    /**
     * <code>optional string name = 1;</code>
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * <pre>
     * JSON description of configuration settings necessary to create the codec with
     * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
     * </pre>
     *
     * <code>optional string config = 2;</code>
     * @return Whether the config field is set.
     */
    boolean hasConfig();
    /**
     * <pre>
     * JSON description of configuration settings necessary to create the codec with
     * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
     * </pre>
     *
     * <code>optional string config = 2;</code>
     * @return The config.
     */
    java.lang.String getConfig();
    /**
     * <pre>
     * JSON description of configuration settings necessary to create the codec with
     * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
     * </pre>
     *
     * <code>optional string config = 2;</code>
     * @return The bytes for config.
     */
    com.google.protobuf.ByteString
        getConfigBytes();
  }
  /**
   * Protobuf type {@code org.graylog2.plugin.journal.CodecInfo}
   */
  public static final class CodecInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:org.graylog2.plugin.journal.CodecInfo)
      CodecInfoOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use CodecInfo.newBuilder() to construct.
    private CodecInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private CodecInfo() {
      name_ = "";
      config_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new CodecInfo();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_CodecInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_CodecInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.graylog2.plugin.journal.JournalMessages.CodecInfo.class, org.graylog2.plugin.journal.JournalMessages.CodecInfo.Builder.class);
    }

    private int bitField0_;
    public static final int NAME_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object name_ = "";
    /**
     * <code>optional string name = 1;</code>
     * @return Whether the name field is set.
     */
    @java.lang.Override
    public boolean hasName() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional string name = 1;</code>
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          name_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string name = 1;</code>
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CONFIG_FIELD_NUMBER = 2;
    @SuppressWarnings("serial")
    private volatile java.lang.Object config_ = "";
    /**
     * <pre>
     * JSON description of configuration settings necessary to create the codec with
     * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
     * </pre>
     *
     * <code>optional string config = 2;</code>
     * @return Whether the config field is set.
     */
    @java.lang.Override
    public boolean hasConfig() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <pre>
     * JSON description of configuration settings necessary to create the codec with
     * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
     * </pre>
     *
     * <code>optional string config = 2;</code>
     * @return The config.
     */
    @java.lang.Override
    public java.lang.String getConfig() {
      java.lang.Object ref = config_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          config_ = s;
        }
        return s;
      }
    }
    /**
     * <pre>
     * JSON description of configuration settings necessary to create the codec with
     * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
     * </pre>
     *
     * <code>optional string config = 2;</code>
     * @return The bytes for config.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getConfigBytes() {
      java.lang.Object ref = config_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        config_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, config_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, config_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.graylog2.plugin.journal.JournalMessages.CodecInfo)) {
        return super.equals(obj);
      }
      org.graylog2.plugin.journal.JournalMessages.CodecInfo other = (org.graylog2.plugin.journal.JournalMessages.CodecInfo) obj;

      if (hasName() != other.hasName()) return false;
      if (hasName()) {
        if (!getName()
            .equals(other.getName())) return false;
      }
      if (hasConfig() != other.hasConfig()) return false;
      if (hasConfig()) {
        if (!getConfig()
            .equals(other.getConfig())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasName()) {
        hash = (37 * hash) + NAME_FIELD_NUMBER;
        hash = (53 * hash) + getName().hashCode();
      }
      if (hasConfig()) {
        hash = (37 * hash) + CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getConfig().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.graylog2.plugin.journal.JournalMessages.CodecInfo prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code org.graylog2.plugin.journal.CodecInfo}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:org.graylog2.plugin.journal.CodecInfo)
        org.graylog2.plugin.journal.JournalMessages.CodecInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_CodecInfo_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_CodecInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.graylog2.plugin.journal.JournalMessages.CodecInfo.class, org.graylog2.plugin.journal.JournalMessages.CodecInfo.Builder.class);
      }

      // Construct using org.graylog2.plugin.journal.JournalMessages.CodecInfo.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        name_ = "";
        config_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_CodecInfo_descriptor;
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.CodecInfo getDefaultInstanceForType() {
        return org.graylog2.plugin.journal.JournalMessages.CodecInfo.getDefaultInstance();
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.CodecInfo build() {
        org.graylog2.plugin.journal.JournalMessages.CodecInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.CodecInfo buildPartial() {
        org.graylog2.plugin.journal.JournalMessages.CodecInfo result = new org.graylog2.plugin.journal.JournalMessages.CodecInfo(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.graylog2.plugin.journal.JournalMessages.CodecInfo result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.name_ = name_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.config_ = config_;
          to_bitField0_ |= 0x00000002;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.graylog2.plugin.journal.JournalMessages.CodecInfo) {
          return mergeFrom((org.graylog2.plugin.journal.JournalMessages.CodecInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.graylog2.plugin.journal.JournalMessages.CodecInfo other) {
        if (other == org.graylog2.plugin.journal.JournalMessages.CodecInfo.getDefaultInstance()) return this;
        if (other.hasName()) {
          name_ = other.name_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (other.hasConfig()) {
          config_ = other.config_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                name_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                config_ = input.readBytes();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.lang.Object name_ = "";
      /**
       * <code>optional string name = 1;</code>
       * @return Whether the name field is set.
       */
      public boolean hasName() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional string name = 1;</code>
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            name_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string name = 1;</code>
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string name = 1;</code>
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>optional string name = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearName() {
        name_ = getDefaultInstance().getName();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>optional string name = 1;</code>
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object config_ = "";
      /**
       * <pre>
       * JSON description of configuration settings necessary to create the codec with
       * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
       * </pre>
       *
       * <code>optional string config = 2;</code>
       * @return Whether the config field is set.
       */
      public boolean hasConfig() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <pre>
       * JSON description of configuration settings necessary to create the codec with
       * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
       * </pre>
       *
       * <code>optional string config = 2;</code>
       * @return The config.
       */
      public java.lang.String getConfig() {
        java.lang.Object ref = config_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            config_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * JSON description of configuration settings necessary to create the codec with
       * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
       * </pre>
       *
       * <code>optional string config = 2;</code>
       * @return The bytes for config.
       */
      public com.google.protobuf.ByteString
          getConfigBytes() {
        java.lang.Object ref = config_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          config_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * JSON description of configuration settings necessary to create the codec with
       * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
       * </pre>
       *
       * <code>optional string config = 2;</code>
       * @param value The config to set.
       * @return This builder for chaining.
       */
      public Builder setConfig(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        config_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * JSON description of configuration settings necessary to create the codec with
       * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
       * </pre>
       *
       * <code>optional string config = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearConfig() {
        config_ = getDefaultInstance().getConfig();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * JSON description of configuration settings necessary to create the codec with
       * for optimal performance make sure the serialization is stable, i.e. same config == same serialization bytes
       * </pre>
       *
       * <code>optional string config = 2;</code>
       * @param value The bytes for config to set.
       * @return This builder for chaining.
       */
      public Builder setConfigBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        config_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:org.graylog2.plugin.journal.CodecInfo)
    }

    // @@protoc_insertion_point(class_scope:org.graylog2.plugin.journal.CodecInfo)
    private static final org.graylog2.plugin.journal.JournalMessages.CodecInfo DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.graylog2.plugin.journal.JournalMessages.CodecInfo();
    }

    public static org.graylog2.plugin.journal.JournalMessages.CodecInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<CodecInfo>
        PARSER = new com.google.protobuf.AbstractParser<CodecInfo>() {
      @java.lang.Override
      public CodecInfo parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser<CodecInfo> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<CodecInfo> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.graylog2.plugin.journal.JournalMessages.CodecInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface SourceNodeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:org.graylog2.plugin.journal.SourceNode)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional string id = 1;</code>
     * @return Whether the id field is set.
     */
    boolean hasId();
    /**
     * <code>optional string id = 1;</code>
     * @return The id.
     */
    java.lang.String getId();
    /**
     * <code>optional string id = 1;</code>
     * @return The bytes for id.
     */
    com.google.protobuf.ByteString
        getIdBytes();

    /**
     * <code>optional .org.graylog2.plugin.journal.SourceNode.Type type = 2 [default = SERVER];</code>
     * @return Whether the type field is set.
     */
    boolean hasType();
    /**
     * <code>optional .org.graylog2.plugin.journal.SourceNode.Type type = 2 [default = SERVER];</code>
     * @return The type.
     */
    org.graylog2.plugin.journal.JournalMessages.SourceNode.Type getType();

    /**
     * <code>optional string input_id = 3;</code>
     * @return Whether the inputId field is set.
     */
    boolean hasInputId();
    /**
     * <code>optional string input_id = 3;</code>
     * @return The inputId.
     */
    java.lang.String getInputId();
    /**
     * <code>optional string input_id = 3;</code>
     * @return The bytes for inputId.
     */
    com.google.protobuf.ByteString
        getInputIdBytes();
  }
  /**
   * Protobuf type {@code org.graylog2.plugin.journal.SourceNode}
   */
  public static final class SourceNode extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:org.graylog2.plugin.journal.SourceNode)
      SourceNodeOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SourceNode.newBuilder() to construct.
    private SourceNode(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private SourceNode() {
      id_ = "";
      type_ = 0;
      inputId_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new SourceNode();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_SourceNode_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_SourceNode_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.graylog2.plugin.journal.JournalMessages.SourceNode.class, org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder.class);
    }

    /**
     * Protobuf enum {@code org.graylog2.plugin.journal.SourceNode.Type}
     */
    public enum Type
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <code>SERVER = 0;</code>
       */
      SERVER(0),
      /**
       * <code>RADIO = 1;</code>
       */
      RADIO(1),
      ;

      /**
       * <code>SERVER = 0;</code>
       */
      public static final int SERVER_VALUE = 0;
      /**
       * <code>RADIO = 1;</code>
       */
      public static final int RADIO_VALUE = 1;


      public final int getNumber() {
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Type valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Type forNumber(int value) {
        switch (value) {
          case 0: return SERVER;
          case 1: return RADIO;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<Type>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Type> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<Type>() {
              public Type findValueByNumber(int number) {
                return Type.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return org.graylog2.plugin.journal.JournalMessages.SourceNode.getDescriptor().getEnumTypes().get(0);
      }

      private static final Type[] VALUES = values();

      public static Type valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Type(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:org.graylog2.plugin.journal.SourceNode.Type)
    }

    private int bitField0_;
    public static final int ID_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object id_ = "";
    /**
     * <code>optional string id = 1;</code>
     * @return Whether the id field is set.
     */
    @java.lang.Override
    public boolean hasId() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional string id = 1;</code>
     * @return The id.
     */
    @java.lang.Override
    public java.lang.String getId() {
      java.lang.Object ref = id_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          id_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string id = 1;</code>
     * @return The bytes for id.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getIdBytes() {
      java.lang.Object ref = id_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        id_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TYPE_FIELD_NUMBER = 2;
    private int type_ = 0;
    /**
     * <code>optional .org.graylog2.plugin.journal.SourceNode.Type type = 2 [default = SERVER];</code>
     * @return Whether the type field is set.
     */
    @java.lang.Override public boolean hasType() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional .org.graylog2.plugin.journal.SourceNode.Type type = 2 [default = SERVER];</code>
     * @return The type.
     */
    @java.lang.Override public org.graylog2.plugin.journal.JournalMessages.SourceNode.Type getType() {
      org.graylog2.plugin.journal.JournalMessages.SourceNode.Type result = org.graylog2.plugin.journal.JournalMessages.SourceNode.Type.forNumber(type_);
      return result == null ? org.graylog2.plugin.journal.JournalMessages.SourceNode.Type.SERVER : result;
    }

    public static final int INPUT_ID_FIELD_NUMBER = 3;
    @SuppressWarnings("serial")
    private volatile java.lang.Object inputId_ = "";
    /**
     * <code>optional string input_id = 3;</code>
     * @return Whether the inputId field is set.
     */
    @java.lang.Override
    public boolean hasInputId() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional string input_id = 3;</code>
     * @return The inputId.
     */
    @java.lang.Override
    public java.lang.String getInputId() {
      java.lang.Object ref = inputId_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          inputId_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string input_id = 3;</code>
     * @return The bytes for inputId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getInputIdBytes() {
      java.lang.Object ref = inputId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        inputId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeEnum(2, type_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inputId_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(2, type_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inputId_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.graylog2.plugin.journal.JournalMessages.SourceNode)) {
        return super.equals(obj);
      }
      org.graylog2.plugin.journal.JournalMessages.SourceNode other = (org.graylog2.plugin.journal.JournalMessages.SourceNode) obj;

      if (hasId() != other.hasId()) return false;
      if (hasId()) {
        if (!getId()
            .equals(other.getId())) return false;
      }
      if (hasType() != other.hasType()) return false;
      if (hasType()) {
        if (type_ != other.type_) return false;
      }
      if (hasInputId() != other.hasInputId()) return false;
      if (hasInputId()) {
        if (!getInputId()
            .equals(other.getInputId())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasId()) {
        hash = (37 * hash) + ID_FIELD_NUMBER;
        hash = (53 * hash) + getId().hashCode();
      }
      if (hasType()) {
        hash = (37 * hash) + TYPE_FIELD_NUMBER;
        hash = (53 * hash) + type_;
      }
      if (hasInputId()) {
        hash = (37 * hash) + INPUT_ID_FIELD_NUMBER;
        hash = (53 * hash) + getInputId().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.graylog2.plugin.journal.JournalMessages.SourceNode parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.graylog2.plugin.journal.JournalMessages.SourceNode prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code org.graylog2.plugin.journal.SourceNode}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:org.graylog2.plugin.journal.SourceNode)
        org.graylog2.plugin.journal.JournalMessages.SourceNodeOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_SourceNode_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_SourceNode_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.graylog2.plugin.journal.JournalMessages.SourceNode.class, org.graylog2.plugin.journal.JournalMessages.SourceNode.Builder.class);
      }

      // Construct using org.graylog2.plugin.journal.JournalMessages.SourceNode.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        id_ = "";
        type_ = 0;
        inputId_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.graylog2.plugin.journal.JournalMessages.internal_static_org_graylog2_plugin_journal_SourceNode_descriptor;
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.SourceNode getDefaultInstanceForType() {
        return org.graylog2.plugin.journal.JournalMessages.SourceNode.getDefaultInstance();
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.SourceNode build() {
        org.graylog2.plugin.journal.JournalMessages.SourceNode result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.SourceNode buildPartial() {
        org.graylog2.plugin.journal.JournalMessages.SourceNode result = new org.graylog2.plugin.journal.JournalMessages.SourceNode(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.graylog2.plugin.journal.JournalMessages.SourceNode result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.id_ = id_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.type_ = type_;
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.inputId_ = inputId_;
          to_bitField0_ |= 0x00000004;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.graylog2.plugin.journal.JournalMessages.SourceNode) {
          return mergeFrom((org.graylog2.plugin.journal.JournalMessages.SourceNode)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.graylog2.plugin.journal.JournalMessages.SourceNode other) {
        if (other == org.graylog2.plugin.journal.JournalMessages.SourceNode.getDefaultInstance()) return this;
        if (other.hasId()) {
          id_ = other.id_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (other.hasType()) {
          setType(other.getType());
        }
        if (other.hasInputId()) {
          inputId_ = other.inputId_;
          bitField0_ |= 0x00000004;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                id_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 16: {
                int tmpRaw = input.readEnum();
                org.graylog2.plugin.journal.JournalMessages.SourceNode.Type tmpValue =
                    org.graylog2.plugin.journal.JournalMessages.SourceNode.Type.forNumber(tmpRaw);
                if (tmpValue == null) {
                  mergeUnknownVarintField(2, tmpRaw);
                } else {
                  type_ = tmpRaw;
                  bitField0_ |= 0x00000002;
                }
                break;
              } // case 16
              case 26: {
                inputId_ = input.readBytes();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.lang.Object id_ = "";
      /**
       * <code>optional string id = 1;</code>
       * @return Whether the id field is set.
       */
      public boolean hasId() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional string id = 1;</code>
       * @return The id.
       */
      public java.lang.String getId() {
        java.lang.Object ref = id_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            id_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string id = 1;</code>
       * @return The bytes for id.
       */
      public com.google.protobuf.ByteString
          getIdBytes() {
        java.lang.Object ref = id_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          id_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string id = 1;</code>
       * @param value The id to set.
       * @return This builder for chaining.
       */
      public Builder setId(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        id_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>optional string id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearId() {
        id_ = getDefaultInstance().getId();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>optional string id = 1;</code>
       * @param value The bytes for id to set.
       * @return This builder for chaining.
       */
      public Builder setIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        id_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private int type_ = 0;
      /**
       * <code>optional .org.graylog2.plugin.journal.SourceNode.Type type = 2 [default = SERVER];</code>
       * @return Whether the type field is set.
       */
      @java.lang.Override public boolean hasType() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional .org.graylog2.plugin.journal.SourceNode.Type type = 2 [default = SERVER];</code>
       * @return The type.
       */
      @java.lang.Override
      public org.graylog2.plugin.journal.JournalMessages.SourceNode.Type getType() {
        org.graylog2.plugin.journal.JournalMessages.SourceNode.Type result = org.graylog2.plugin.journal.JournalMessages.SourceNode.Type.forNumber(type_);
        return result == null ? org.graylog2.plugin.journal.JournalMessages.SourceNode.Type.SERVER : result;
      }
      /**
       * <code>optional .org.graylog2.plugin.journal.SourceNode.Type type = 2 [default = SERVER];</code>
       * @param value The type to set.
       * @return This builder for chaining.
       */
      public Builder setType(org.graylog2.plugin.journal.JournalMessages.SourceNode.Type value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        type_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>optional .org.graylog2.plugin.journal.SourceNode.Type type = 2 [default = SERVER];</code>
       * @return This builder for chaining.
       */
      public Builder clearType() {
        bitField0_ = (bitField0_ & ~0x00000002);
        type_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object inputId_ = "";
      /**
       * <code>optional string input_id = 3;</code>
       * @return Whether the inputId field is set.
       */
      public boolean hasInputId() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>optional string input_id = 3;</code>
       * @return The inputId.
       */
      public java.lang.String getInputId() {
        java.lang.Object ref = inputId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            inputId_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string input_id = 3;</code>
       * @return The bytes for inputId.
       */
      public com.google.protobuf.ByteString
          getInputIdBytes() {
        java.lang.Object ref = inputId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          inputId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string input_id = 3;</code>
       * @param value The inputId to set.
       * @return This builder for chaining.
       */
      public Builder setInputId(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        inputId_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <code>optional string input_id = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearInputId() {
        inputId_ = getDefaultInstance().getInputId();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       * <code>optional string input_id = 3;</code>
       * @param value The bytes for inputId to set.
       * @return This builder for chaining.
       */
      public Builder setInputIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        inputId_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:org.graylog2.plugin.journal.SourceNode)
    }

    // @@protoc_insertion_point(class_scope:org.graylog2.plugin.journal.SourceNode)
    private static final org.graylog2.plugin.journal.JournalMessages.SourceNode DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.graylog2.plugin.journal.JournalMessages.SourceNode();
    }

    public static org.graylog2.plugin.journal.JournalMessages.SourceNode getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser<SourceNode>
        PARSER = new com.google.protobuf.AbstractParser<SourceNode>() {
      @java.lang.Override
      public SourceNode parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser<SourceNode> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<SourceNode> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.graylog2.plugin.journal.JournalMessages.SourceNode getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_org_graylog2_plugin_journal_JournalMessage_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_org_graylog2_plugin_journal_JournalMessage_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_org_graylog2_plugin_journal_RemoteAddress_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_org_graylog2_plugin_journal_RemoteAddress_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_org_graylog2_plugin_journal_CodecInfo_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_org_graylog2_plugin_journal_CodecInfo_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_org_graylog2_plugin_journal_SourceNode_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_org_graylog2_plugin_journal_SourceNode_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n7resources/org/graylog2/plugin/journal/" +
      "raw_message.proto\022\033org.graylog2.plugin.j" +
      "ournal\"\266\002\n\016JournalMessage\022\017\n\007version\030\001 \001" +
      "(\r\022\021\n\tuuid_time\030\002 \001(\006\022\025\n\ruuid_clockseq\030\003" +
      " \001(\006\022\021\n\ttimestamp\030\004 \001(\006\0225\n\005codec\030\005 \001(\0132&" +
      ".org.graylog2.plugin.journal.CodecInfo\022=" +
      "\n\014source_nodes\030\006 \003(\0132\'.org.graylog2.plug" +
      "in.journal.SourceNode\022:\n\006remote\030\007 \001(\0132*." +
      "org.graylog2.plugin.journal.RemoteAddres" +
      "s\022\017\n\007payload\030\010 \001(\014\022\023\n\013sequence_nr\030\t \001(\r\"" +
      "@\n\rRemoteAddress\022\017\n\007address\030\001 \001(\014\022\014\n\004por" +
      "t\030\002 \001(\r\022\020\n\010resolved\030\003 \001(\t\")\n\tCodecInfo\022\014" +
      "\n\004name\030\001 \001(\t\022\016\n\006config\030\002 \001(\t\"\215\001\n\nSourceN" +
      "ode\022\n\n\002id\030\001 \001(\t\022B\n\004type\030\002 \001(\0162,.org.gray" +
      "log2.plugin.journal.SourceNode.Type:\006SER" +
      "VER\022\020\n\010input_id\030\003 \001(\t\"\035\n\004Type\022\n\n\006SERVER\020" +
      "\000\022\t\n\005RADIO\020\001B.\n\033org.graylog2.plugin.jour" +
      "nalB\017JournalMessages"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_org_graylog2_plugin_journal_JournalMessage_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_org_graylog2_plugin_journal_JournalMessage_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_org_graylog2_plugin_journal_JournalMessage_descriptor,
        new java.lang.String[] { "Version", "UuidTime", "UuidClockseq", "Timestamp", "Codec", "SourceNodes", "Remote", "Payload", "SequenceNr", });
    internal_static_org_graylog2_plugin_journal_RemoteAddress_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_org_graylog2_plugin_journal_RemoteAddress_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_org_graylog2_plugin_journal_RemoteAddress_descriptor,
        new java.lang.String[] { "Address", "Port", "Resolved", });
    internal_static_org_graylog2_plugin_journal_CodecInfo_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_org_graylog2_plugin_journal_CodecInfo_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_org_graylog2_plugin_journal_CodecInfo_descriptor,
        new java.lang.String[] { "Name", "Config", });
    internal_static_org_graylog2_plugin_journal_SourceNode_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_org_graylog2_plugin_journal_SourceNode_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_org_graylog2_plugin_journal_SourceNode_descriptor,
        new java.lang.String[] { "Id", "Type", "InputId", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
